package com.cy.study.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cy.study.entity.QuestionEntity;
import com.cy.study.req.QuestionAddReq;
import com.cy.study.req.QuestionDeleteReq;
import com.cy.study.req.UserSubmitExamReq;
import com.cy.study.res.UserExamDetailRes;

public interface QuestionService extends IService<QuestionEntity> {

    /**
     * 管理端添加题目
     * @param req
     * @return
     */
    Integer addQuestion(QuestionAddReq req);


    /**
     * 管理员删除题目
     * @param req
     */
    void deleteQuestion(QuestionDeleteReq req);

    /**
     * 用户端
     * @param examId
     * @return
     */
    UserExamDetailRes userExamDetail(Integer examId);

    /**
     * 用户端答题
     * @param req
     */
    void userSubmitExam(UserSubmitExamReq req);
}
